/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.udistrital.framework.adminMenu.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nrodriguez
 */
@Entity
@Table(name = "amprf")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Amprf.findAll", query = "SELECT a FROM Amprf a"),
    @NamedQuery(name = "Amprf.findByAprnom", query = "SELECT a FROM Amprf a WHERE a.aprnom = :aprnom"),
    @NamedQuery(name = "Amprf.findByAprdsc", query = "SELECT a FROM Amprf a WHERE a.aprdsc = :aprdsc"),
    @NamedQuery(name = "Amprf.findByAprest", query = "SELECT a FROM Amprf a WHERE a.aprest = :aprest")})
public class Amprf implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "aprnom")
    private String aprnom;
    @Column(name = "aprdsc")
    private String aprdsc;
    @Column(name = "aprest")
    private String aprest;

    public Amprf() {
    }

    public Amprf(String aprnom) {
        this.aprnom = aprnom;
    }

    public String getAprnom() {
        return aprnom;
    }

    public void setAprnom(String aprnom) {
        this.aprnom = aprnom;
    }

    public String getAprdsc() {
        return aprdsc;
    }

    public void setAprdsc(String aprdsc) {
        this.aprdsc = aprdsc;
    }

    public String getAprest() {
        return aprest;
    }

    public void setAprest(String aprest) {
        this.aprest = aprest;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (aprnom != null ? aprnom.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Amprf)) {
            return false;
        }
        Amprf other = (Amprf) object;
        if ((this.aprnom == null && other.aprnom != null) || (this.aprnom != null && !this.aprnom.equals(other.aprnom))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.udistrital.ud.modelo.Amprf[ aprnom=" + aprnom + " ]";
    }
    
}
